<?php

namespace app\validate;

use think\Validate;

class ProductCategoryValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'id' => 'require',
    ];

    protected $message = [
        'name.require' => '请输入分类名称',
        'id.require' => '请选择分类',
    ];

    protected $scene = [
        'add' => ['name'],
        'edit' => ['id','name'],
        'del' => ['id'],
    ];


}